package io;

import java.io.*;

public class OSWDemo_1 {

    public static void main(String[] args) throws IOException {
//        FileOutputStream fow = new FileOutputStream("osw_1.txt");
//        OutputStreamWriter osw = new OutputStreamWriter(fow);
//        osw.write("wwwwwwdswwwwwwwwwwww");
//        System.out.println("写出完毕!");

        FileInputStream fis = new FileInputStream("osw_1.txt");
        InputStreamReader isr = new InputStreamReader(fis);
        int d;
        while ((d = isr.read())!=-1){
            System.out.print((char)d);
        }
//        osw.close();
        isr.close();
    }
}
